Skip to content

Allow reordering terminal tabs via drag and drop#2681

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-tab-reorder-2679
Open

Allow reordering terminal tabs via drag and drop#2681
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-tab-reorder-2679

Conversation

@vogella

@vogella vogella commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Dragging a terminal tab within the same Terminals view now reorders it to the drop position, the same way editor and view tabs can be rearranged.
Previously a drop inside the originating view was rejected, so tabs could only be moved to a different Terminals view.

The reorder relies on the new CTabFolder.moveItem(int, int) API (SWT 3.135, eclipse-platform/eclipse.platform.swt#3350), which keeps the live terminal control attached instead of recreating it.
The existing cross-view move is left untouched because transferring a terminal to a different view still requires re-parenting.

Draft because it depends on SWT 3.135, which is not yet in the platform target platform, so CI cannot build it until that lands.

Fixes #2679

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ± 0      54 suites  ±0   55m 11s ⏱️ - 2m 8s
 4 677 tests + 6   4 655 ✅ + 6   22 💤 ±0  0 ❌ ±0 
11 925 runs  +18  11 772 ✅ +18  153 💤 ±0  0 ❌ ±0 

Results for commit df4c5bc. ± Comparison against base commit f1cdf9d.

♻️ This comment has been updated with latest results.

@vogella

vogella commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Needs the change in SWT, which should be available tomorrow, after that this can be tested.

@vogella vogella force-pushed the feature/terminal-tab-reorder-2679 branch from e6aed94 to 9d4e6d6 Compare June 3, 2026 08:09
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

terminal/features/org.eclipse.terminal.feature/feature.xml

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From ed891f2476a356fc9e091c8568fc8d01afde2021 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Wed, 3 Jun 2026 08:17:43 +0000
Subject: [PATCH] Version bump(s) for 4.41 stream


diff --git a/terminal/features/org.eclipse.terminal.feature/feature.xml b/terminal/features/org.eclipse.terminal.feature/feature.xml
index 94b37131c2..044c0b1ba2 100644
--- a/terminal/features/org.eclipse.terminal.feature/feature.xml
+++ b/terminal/features/org.eclipse.terminal.feature/feature.xml
@@ -2,7 +2,7 @@
 <feature
       id="org.eclipse.terminal.feature"
       label="%featureName"
-      version="1.0.300.qualifier"
+      version="1.0.400.qualifier"
       provider-name="%providerName"
       license-feature="org.eclipse.license"
       license-feature-version="0.0.0">
-- 
2.54.0

Further information are available in Common Build Issues - Missing version increments.

@vogella vogella force-pushed the feature/terminal-tab-reorder-2679 branch 2 times, most recently from ae440dd to 0957a61 Compare June 9, 2026 09:19
Dragging a terminal tab within the same Terminals view now reorders it
to the drop position, matching the drag-to-reorder behavior of editor
and view tabs. The drop within the same view was previously rejected.

The reorder uses the new CTabFolder.moveItem(int, int) API, so the live
terminal control stays attached and no longer has to be recreated. The
existing cross-view move (which transfers a terminal to a different
Terminals view) is unchanged, as it still requires re-parenting.

Requires SWT 3.135.

Fixes eclipse-platform#2679
@vogella vogella force-pushed the feature/terminal-tab-reorder-2679 branch from 0957a61 to df4c5bc Compare June 9, 2026 13:46
@vogella vogella marked this pull request as ready for review June 9, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow reordering terminal instances

2 participants